package day03;

/**
条件运算符演示
 */
public class OPerDemo6 {
    public static void main(String[] args) {
        int a=2,b=5;
        int c=a<b?a:b;
        System.out.println(c);
        int gh=34,ds=22;
        int max=gh>ds?gh:ds;//34
        System.out.println(max);
        int min =gh<ds?gh:ds;
        System.out.println(min);//22
        int hj=20,jh=25;
        int flag=hj<jh?hj:jh;
        System.out.println(flag);//20
    }
}
